/**
* flatten an array of options to a single array, for instance,
* a set of <options> inside <optgroups>.
- * @param $options Associative Array with values either Strings
+ * @param $options array Associative Array with values either Strings
* or Arrays
* @return Array flattened input
*/
/**
* @param $user User
- * @param $context IContextSource
+ * @param $context ContextSource
* @param $defaultPreferences Array
*/
- static function filesPreferences( $user, IContextSource $context, &$defaultPreferences ) {
+ static function filesPreferences( $user, ContextSource $context, &$defaultPreferences ) {
## Files #####################################
$defaultPreferences['imagesize'] = array(
'type' => 'select',
/**
* @param $user User
- * @param $context IContextSource
+ * @param $context ContextSource
* @param $defaultPreferences
* @return void
*/
- static function datetimePreferences( $user, IContextSource $context, &$defaultPreferences ) {
+ static function datetimePreferences( $user, ContextSource $context, &$defaultPreferences ) {
## Date and time #####################################
$dateOptions = self::getDateOptions( $context );
if ( $dateOptions ) {
* Get the final file extension from a file system path
*
* @param $path string
- * @returns string
+ * @return string
*/
public static function extensionFromPath( $path ) {
$i = strrpos( $path, '.' );